home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950726-19950929
/
000241_news@columbia.edu_Mon Aug 28 05:07:49 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-12-25
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA14182
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 28 Aug 1995 18:23:00 -0400
Received: by apakabar.cc.columbia.edu id AA01711
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 28 Aug 1995 18:22:58 -0400
Path: news.columbia.edu!panix!bloom-beacon.mit.edu!spool.mu.edu!uwm.edu!omnifest.uwm.edu!omnifest.uwm.edu!not-for-mail
From: lgreene@omnifest.uwm.edu (Laura Greene)
Newsgroups: comp.protocols.kermit.misc
Subject: accessing a serial device on UNIX -- HELP!
Date: 28 Aug 1995 00:07:49 -0500
Organization: Omnifest
Lines: 33
Distribution: na
Message-Id: <41riv5$thl@omnifest.uwm.edu>
Nntp-Posting-Host: 129.89.70.58
Apparently-To: kermit.misc@watsun.cc.columbia.edu
Here's hoping a kermit/serial device guru can help.
I have been trying to access a serial device via unix. (HP-UX, actually).
I need to send a "connect" string, and then go into an infinite loop,
receiving and processing, a char at a time. (this device sends me
a packet of about 64 bits/minute.
my problem is that when I have sent the string, my next read fails.
I have tried forking, and having one device read and one write, but
the read either hangs completely, or GIVES ME THE STRING THAT I SENT IN,
and nothing else. However, when I reset the modem, while the program
continues to run, everything is cool, and I can do all my reads (though
of course, I had not sent my connect string).
I have enabled CREAD via ioctl(), and I have what I think is a fairly
raw device. so what do I need to do to get the read to work following
a write?
I have the C-Kermit source, and hacked that down to 1000 lines, and
can't see that it is doing anything besides non-blocking IO.
I thought that I might have to flash DTR or something, but that wasn't it,
nor was putting forks in various places.
Anybody got any ideas? I suppose its possible that my fork is not in
the right place, forking before or after I actually open the device....
help! I'm confused! it can't be that hard to do what I want to do!
thanks!